/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vicarvision;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 *
 * @author User
 */
public class facereadersocket extends Socket {

    private static Socket clientSocket;

    static {
        try {
            clientSocket = new facereadersocket("localhost", 9090);

            System.out.println("test");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private facereadersocket(final String address, final int port) throws IOException {
        super(address, port);
    }

    public static final Socket getInstance() {
//        System.out.println("socket");
        return clientSocket;
    }
    public static final Socket closeInstance() throws IOException {
        clientSocket.close();
        return null;
    }
}
